package com.yy.studyspringboot.desensitization;

import com.yy.studyspringboot.desensitization.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * hutool + 注解  实现数据脱敏
 */
@RestController
public class DesensitizationController {

    @GetMapping("/getUser")
    public User getUser(){
        User user = new User();
        user.setCardId("513022199203163538");
        user.setPhone("15822229999");
        user.setName("赵飞燕");
        user.setInfo("这是机密文件，该打码打码");
        return user;
    }

}
